Skip to content

Conversation

diabhoil
Copy link

@diabhoil diabhoil commented Aug 7, 2025

Q A
Bug fix? [ X]
New feature? [ ]
New sample? [ ]
Related issues? fixes #2040

What's in this Pull Request?

Changed to get the default value for ModernTaxonomyPicker in the correct ITermInfo format. Bug mentioned in #2040

The "value" given to the ModernTaxonomyPicker field was { key: string; name: string; }. The picker is waiting for { id: string; labels: Array<..> }

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the first contribution to this project.

name: element.Label,
});
});
// item[field.InternalName].forEach((element) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you comment this one?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure anymore. It's been a while since the change. But I suspect it's because I wasn't sure what the purpose of the loop was at that point. It iterates over all the values ​​and pushes them into the "selectedTags" array. And then the array is no longer used. In my opinion, the lines can be deleted entirely, including line 1314. But that was already commented out in the code. Maybe that's why I didn't delete it.

Copy link
Collaborator

@AJIXuMuK AJIXuMuK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@diabhoil - could you please reply on my comment??

Thanks!

@diabhoil
Copy link
Author

I have commented :)

Do I have to resolve? I just added the comment for now 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants